{% extends 'base.html' %}
{% block title %}
趋势
{% endblock %}
{% block content %}
<div class="btn-group">
    <button type="button" class="btn btn-info">{{ product.name }}</button>
    <button type="button" class="btn btn-primary dropdown-toggle btn-sm" data-toggle="dropdown">
        <span class="caret"></span>
        <span class="sr-only">切换下拉菜单</span>
    </button>
    <ul class="dropdown-menu" role="menu">
        {% for pd in products %}
        <li><a href="{{ url_for('wx.bp_report.trend',pk=pd.id) }}">{{ pd.name }}</a></li>
        {% endfor %}
    </ul>
</div>
<br>
<br>
<!-- <div class="row">
    <div class="col-3">

    </div>
</div> -->
<div id="chart">
    <embed type="image/svg+xml" src= {{ chart|safe }} />
 </div>
{% endblock %}